import {useStore} from "vuex";
import {computed} from "vue";

interface Service {
    title: string
    icon: string
    to?: string
    color?: string
    openType?: 'contact' | 'share',
}

interface ServiceNeedAuth extends Service{
    auth: boolean
    QX_ID: number
}

export function useServiceList() {

    const serviceList: Array<Service | ServiceNeedAuth>  = [
        {
            title: '人员管理',
            icon: 'profilefill',
            to: '/pages/manage/members',
            auth: true,
            QX_ID: 14
        },
		{
		    title: '专业班招生管理',
		    icon: 'group_fill',
		    to: '/pages/manage/ClassTab',
		    auth: true,
		    QX_ID: 29
		},
        // {
        //     title: '班级管理',
        //     icon: 'group_fill',
        //     to: '/pages/manage/classes',
        //     auth: true,
        //     QX_ID: 15
        // },
        // {
        //     title: '招生管理',
        //     icon: 'selectionfill',
        //     to: '/pages/manage/ZS',
        //     auth: true,
        //     QX_ID: 16,
        //     color: 'purple'
        // },
        {
            title: '报名表管理',
            icon: 'formfill',
            to: '/pages/manage/enroll',
            auth: true,
            QX_ID: 9,
            color: 'green'
        },
        {
            title: '转专业审核',
            icon: 'newshotfill',
            to: '/pages/manage/ZZY',
            auth: true,
            QX_ID: 24,
            color: 'red'
        },
        {
            title: '转班申请',
            icon: 'circlefill',
            to: '/pages/enroll/ZZYChoose',
            auth: true,
            QX_ID: 23,
            color: 'yellow'
        },
		{
			title: '退款审核',
			icon: 'circlefill',
			to: '/pages/manage/TKSH',
			auth: true,
			QX_ID: 22,
			color: 'yellow'
		},
		{
			title: '报名情况查询',
			icon: 'newshotfill',
			to: '/pages/manage/applyTab',
			auth: true,
			QX_ID: 10,
			color: 'green'
		},
		{
			title: '班级群二维码管理',
			icon: 'creative',
			to: '/pages/More/index',
			auth: true,
			color: 'yellow',
			QX_ID: 31
		},
		{
			title: '课程表',
			icon: 'font',
			to: '/pages/Syllabus/index',
			auth: true,
			color: 'green',
			QX_ID: 13
		},
		{
			title: '信息管理',
			icon: 'cascades',
			to: '/pages/Infomange/index',
			auth: true,
			color: 'yellow',
			QX_ID: 32
		},
        {
            title: '分享给朋友',
            icon: 'share',
            color: 'green',
            // auth: false,
            openType: 'share'
        },
        {
            title: '联系客服',
            icon: 'servicefill',
            color: 'red',
            // auth: false,
            openType: 'contact'
        }
    ]

    return {
        serviceList
    }
}
